package com.huanke.iot.base.dao.device.alarm;


import com.huanke.iot.base.dao.BaseMapper;
import com.huanke.iot.base.po.device.alarm.DeviceAlarmDataPo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author Caik
 * @date 2018/8/14 19:21
 */
public interface DeviceAlarmDataMapper extends BaseMapper<DeviceAlarmDataPo> {


    List<DeviceAlarmDataPo> queryDeviceFailureDataList(@Param("deviceId") Integer deviceId);

    Date selectLastRecoverTimeByDeviceIdAndCode(@Param("deviceId") Integer deviceId, @Param("code") String code, @Param("alarmTime") Date alarmTime);

    Integer selectStatus(@Param("deviceId") Integer deviceId, @Param("code") String code);
}
